package com.wisdytech.linkdcs.equipLifeCycle.maintain.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenbin
 * @since 2018-06-10
 */
@TableName("TT_EQ_MAINTENANCE_PLAN")
public class MaintenancePlan extends Model<MaintenancePlan> {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 保养类别表id
     */
    @TableField("TYPE_ID")
    private String typeId;
    /**
     * 设备型号编码
     */
    @TableField("MODEL_CODE")
    private String modelCode;
    /**
     * 开始时间
     */
    @TableField("START_DATE")
    private Date startDate;
    /**
     * 保养周期
     */
    @TableField("MAINTAIN_CYCLE")
    private Double maintainCycle;
    /**
     * 保养用户
     */
    @TableField("MAINTAIN_USER_NAME")
    private String maintainUserName;
    /**
     * 保养人工号
     */
    @TableField("MAINTAIN_USER_WORKNO")
    private String maintainUserWorkNo;
    /**
     * 是否需要保养确认
     */
    @TableField("MAINTAIN_CONFIRM")
    private Double maintainConfirm;
    /**
     * 保养计划类型
     */
    @TableField("PLAN_TYPE")
    private Double planType;
    /**
     * 保养状态
     */
    @TableField("PLAN_STATUS")
    private String planStatus;
    /**
     * 删除标志
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 修改人
     */
    @TableField("UPDATE_USER")
    private String updateUser;
    /**
     * 修改时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * 备注
     */
    @TableField("REMARK")
    private String remark;
    /**
     * 保养类别编码
     */
    @TableField(exist=false)
    private String typeCode;
    /**
     * 保养类别名称
     */
    @TableField(exist=false)
    private String typeName;
    /**
     * 用户名
     */
    @TableField(exist=false)
    private String username;
    
    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getModelCode() {
		return modelCode;
	}

	public void setModelCode(String modelCode) {
		this.modelCode = modelCode;
	}

	public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Double getMaintainCycle() {
        return maintainCycle;
    }

    public void setMaintainCycle(Double maintainCycle) {
        this.maintainCycle = maintainCycle;
    }

    public String getMaintainUserName() {
        return maintainUserName;
    }
    
    

    public String getMaintainUserWorkNo() {
		return maintainUserWorkNo;
	}

	public void setMaintainUserWorkNo(String maintainUserWorkNo) {
		this.maintainUserWorkNo = maintainUserWorkNo;
	}

	public void setMaintainUserName(String maintainUserName) {
        this.maintainUserName = maintainUserName;
    }

    public Double getMaintainConfirm() {
        return maintainConfirm;
    }

    public void setMaintainConfirm(Double maintainConfirm) {
        this.maintainConfirm = maintainConfirm;
    }

    public Double getPlanType() {
        return planType;
    }

    public void setPlanType(Double planType) {
        this.planType = planType;
    }

    public String getPlanStatus() {
        return planStatus;
    }

    public void setPlanStatus(String planStatus) {
        this.planStatus = planStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}


}
